/////////////////////////////////////////////////////////////////////////////
// Name:        slposconfig.h
// Purpose:     
// Author:      Herry Ayen Yang
// Modified by: 
// Created:     26/02/2009 17:00:46
// RCS-ID:      
// Copyright:   Copyright (c) 2000, 2008 Krida Software Division
// Licence:     
/////////////////////////////////////////////////////////////////////////////

#ifndef _SLPOSCONFIG_H_
#define _SLPOSCONFIG_H_


/*!
 * Includes
 */

////@begin includes
#include "wx/valtext.h"
#include "wx/statline.h"
////@end includes
#include "wx/config.h"

/*!
 * Forward declarations
 */

////@begin forward declarations
////@end forward declarations

/*!
 * Control identifiers
 */

////@begin control identifiers
#define ID_SLPOSCONFIG 10000
#define ID_TEXTCTRL 10003
#define ID_TEXTCTRL1 10001
#define ID_TEXTCTRL2 10002
#define ID_TEXTCTRL3 10004
#define ID_TEXTCTRL4 10005
#define SYMBOL_SLPOSCONFIG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
#define SYMBOL_SLPOSCONFIG_TITLE _("SLpos Config")
#define SYMBOL_SLPOSCONFIG_IDNAME ID_SLPOSCONFIG
#define SYMBOL_SLPOSCONFIG_SIZE wxDefaultSize
#define SYMBOL_SLPOSCONFIG_POSITION wxDefaultPosition
////@end control identifiers


/*!
 * SLposConfig class declaration
 */

class SLposConfig: public wxDialog
{    
    DECLARE_DYNAMIC_CLASS( SLposConfig )
    DECLARE_EVENT_TABLE()

public:
    /// Constructors
    SLposConfig();
    SLposConfig( wxWindow* parent, wxWindowID id = SYMBOL_SLPOSCONFIG_IDNAME, const wxString& caption = SYMBOL_SLPOSCONFIG_TITLE, const wxPoint& pos = SYMBOL_SLPOSCONFIG_POSITION, const wxSize& size = SYMBOL_SLPOSCONFIG_SIZE, long style = SYMBOL_SLPOSCONFIG_STYLE );

    /// Creation
    bool Create( wxWindow* parent, wxWindowID id = SYMBOL_SLPOSCONFIG_IDNAME, const wxString& caption = SYMBOL_SLPOSCONFIG_TITLE, const wxPoint& pos = SYMBOL_SLPOSCONFIG_POSITION, const wxSize& size = SYMBOL_SLPOSCONFIG_SIZE, long style = SYMBOL_SLPOSCONFIG_STYLE );

    /// Destructor
    ~SLposConfig();

    /// Initialises member variables
    void Init();

    /// Creates the controls and sizers
    void CreateControls();

////@begin SLposConfig event handler declarations

    /// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
    void OnCancelClick( wxCommandEvent& event );

    /// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_SAVE
    void OnSaveClick( wxCommandEvent& event );

////@end SLposConfig event handler declarations

////@begin SLposConfig member function declarations

    /// Retrieves bitmap resources
    wxBitmap GetBitmapResource( const wxString& name );

    /// Retrieves icon resources
    wxIcon GetIconResource( const wxString& name );
////@end SLposConfig member function declarations

    /// Should we show tooltips?
    static bool ShowToolTips();

////@begin SLposConfig member variables
private:
    wxConfig *config;
    wxString ServerAddress;
    wxString ServerPort;
    wxString DatabaseName;
    wxString Username;
    wxString Password;
////@end SLposConfig member variables
};

#endif
    // _SLPOSCONFIG_H_
